<h1>『 {{ $title }} 』</h1>
<form action="?controller=admin_roles&action=saveband" method="POST">

<div id="allRoles">
<h1>{{ $thisrole.rolename }} ({{ $thisrole.description }})<input name="role_id" type="hidden" value="{{ $thisrole.role_id }}" />
</h1>
<h2>蓝色背景项为已有权限，修改对应权限后点击 <input type="submit" value="保存角色" /></h2>
</div>

<div id="allPermissions">
<h1>全部权限列表</h1>
{{ foreach from=$permissionsList item=onePerGroup }}
	
	<h1>{{ $onePerGroup.permission_group_name }} ({{ $onePerGroup.aliasname }})</h1>
	
	<ul>
	{{ foreach from=$onePerGroup.permissions item=permission }}
		
		<li permission_id="{{ $permission.permission_id }}">
			<input class="ckbox" name="permissions[{{ $permission.permission_id }}]" type="checkbox" permission_id="{{ $permission.permission_id }}" group_id="{{ $onePerGroup.permission_group_id }}" />
			<span permission_id="{{ $permission.permission_id }}">
			&nbsp;&nbsp;{{ $permission.pername }} ({{ $onePerGroup.aliasname }})
			</span>
		</li>
		
	{{ /foreach }}
	</ul>

{{ /foreach }}
</div>
</form>